package com.jdd.modules.userstaff.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdd.common.util.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName UserDto
 * @Description 接受前端传来的人员信息
 * @Author liushengnan
 * @Date 2022/3/28 10:06
 * @Version 1.0
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="人员dto", description="人员dto")
public class UserDto {

    /**id*/
    @ApiModelProperty(value = "id")
    private String id;
    /**姓名*/
    @Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    private String userName;
    /**手机号*/
    @Excel(name = "手机号", width = 15)
    @ApiModelProperty(value = "手机号")
    private String mobile;
    /**证件类型*/
    @Excel(name = "证件类型", width = 15)
    @ApiModelProperty(value = "证件类型")
    private String certType;
    /**性别*/
    @Excel(name = "性别", width = 15)
    @ApiModelProperty(value = "性别")
    private Integer gender;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**国籍*/
    @Excel(name = "国籍", width = 15)
    @ApiModelProperty(value = "国籍")
    private String nation;
    /**民族*/
    @Excel(name = "民族", width = 15)
    @ApiModelProperty(value = "民族")
    private String ethnic;
    /**籍贯*/
    @Excel(name = "籍贯", width = 15)
    @ApiModelProperty(value = "籍贯")
    private String hometown;
    /**出生日期*/
    @Excel(name = "出生日期", width = 15)
    @ApiModelProperty(value = "出生日期")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date birthday;
    /**住址*/
    @Excel(name = "住址", width = 15)
    @ApiModelProperty(value = "住址")
    private String address;
    /**证件号*/
    @Excel(name = "证件号", width = 15)
    @ApiModelProperty(value = "证件号")
    private String idCard;
    /**项目人员类型id*/
    @Excel(name = "项目人员类型id", width = 15)
    @ApiModelProperty(value = "项目人员类型id")
    private String projectUserTypeId;
    /**项目id*/
    @Excel(name = "项目id", width = 15)
    @ApiModelProperty(value = "项目id")
    private String projectId;
    /**项目名称*/
    @Excel(name = "项目名称", width = 15)
    @ApiModelProperty(value = "项目名称")
    private String projectName;
    /**项目区域id*/
    @Excel(name = "项目区域id", width = 15)
    @ApiModelProperty(value = "项目区域id")
    private String areaId;
    /**项目区域名称*/
    @Excel(name = "项目区域名称", width = 15)
    @ApiModelProperty(value = "项目区域名称")
    private String areaName;

    @Excel(name = "楼栋id", width = 15)
    @ApiModelProperty(value = "楼栋id")
    private String buildingId;

    @Excel(name = "楼栋名字", width = 15)
    @ApiModelProperty(value = "楼栋名字")
    private String buildingName;

    @Excel(name = "单元id", width = 15)
    @ApiModelProperty(value = "单元id")
    private String unitId;

    @Excel(name = "单元名字", width = 15)
    @ApiModelProperty(value = "单元名字")
    private String unitName;

    @Excel(name = "楼层名字", width = 15)
    @ApiModelProperty(value = "楼层名字")
    private String floorName;

    @Excel(name = "楼层id", width = 15)
    @ApiModelProperty(value = "楼层id")
    private String floorId;

    /**房屋id*/
    @Excel(name = "房屋id", width = 15)
    @ApiModelProperty(value = "房屋id")
    private String houseId;

    /**房屋号*/
    @Excel(name = "房屋号", width = 15)
    @ApiModelProperty(value = "房屋号")
    private String houseName;

    /**拼接的房间号*/
    @Excel(name = "房间号-拼接", width = 15)
    @ApiModelProperty(value = "房间号-拼接")
    private String locateName;

    /**项目部门id*/
    @Excel(name = "项目部门id", width = 15)
    @ApiModelProperty(value = "项目部门id")
    private String departmentId;
    /**项目部门name*/
    @Excel(name = "项目部门name", width = 15)
    @ApiModelProperty(value = "项目部门name")
    private String departmentName;
    /**项目人员类型*/
    @Excel(name = "项目人员类型", width = 15)
    @ApiModelProperty(value = "项目人员类型")
    private String projectUserTypeName;

    /**人脸图片*/
    @Excel(name = "人脸图片", width = 15)
    @ApiModelProperty(value = "人脸图片")
    private String imgDate;

    /**人脸图片*/
    @Excel(name = "人脸图片", width = 15)
    @ApiModelProperty(value = "人脸图片")
    private String imgUrl;

    /**创建时间*/
    @Excel(name = "创建时间", width = 15)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**指令下发状态*/
    @Excel(name = "指令下发状态", width = 15)
    @ApiModelProperty(value = "指令下发状态")
    private Integer sendStatus;

    /**状态*/
    @Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态")
    private String status;


}
